package cn.antscript.antLab.test 
{
	import com.actionsnippet.qbox.QuickObject;
	import com.actionsnippet.qbox.QuickBox2D;

	
	/**
	 * @author microthink42
	 */
	public class MyB2Shape
	{
		private var _box:QuickObject;
		public function MyB2Shape(qbox:QuickBox2D,le:Number,x:Number,y:Number,moveable:Boolean=true)
		{
			var l:Number=le/30;
			var cosL:Number=0.866*l;
			
			
			_box=qbox.addPoly({x:x/30,y:y/30,verts:[[0,-l,cosL,-l / 2,cosL,l/ 2,0,l,-cosL,l / 2,-cosL,-l/2]],density:int(moveable)});
			trace("f")
		}
		
		public function destroy():void
		{
			_box.destroy();
			_box=null;
		}
	}
}
